BIN=proc.exe
CC=gcc

SRC=myproc.c
OBJ=myproc.o
LFLAGS=-o
FLAGS=-c
RM = rm -f
$(BIN):$(OBJ)
	@$(CC) $(LFLAGS) $@ $^
	@echo "linking... $^ to $@"
%.o:%.c
	@$(CC) $(FLAGS) $<
	@echo "compling ... $< to $@"
.PHONY:clean
clean:
	$(RM) $(OBJ) $(BIN)
.PHONY:test
test:
	@echo $(SRC)
	@echo $(OBJ)
